package com.ruizhong.centercontroll.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruizhong.centercontroll.entity.TPermission;
import com.ruizhong.centercontroll.entity.TUser;
import com.ruizhong.centercontroll.entity.TUserPermission;
import com.ruizhong.centercontroll.vo.PageSearchVO;
import com.ruizhong.centercontroll.vo.PageVO;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface TUserService extends IService<TUser> {
    PageVO<TUser> getUserPage(PageSearchVO pageSearchVO);

    void submitAddUser(TUser tUser);

    List<TPermission> getPermissionDetailByUserIds(ArrayList<String> userIds);

    String login(Map<String, Object> conditionMap);

    void addNewUser(Map<String, String> conditionMap);

    void deleteUser(String username);

    TUser getDatailByUserId(String id);

    void submitUpdate(Map<String, Object> conditionMap);

    TUserPermission getPermissionsByUserId(String userId);

    void updatePermissionsByUserId(TUserPermission tUserPermission);
}
